package com.sch.hospital.domain;

import java.time.LocalDate;

/**
 * 医院部门对象 department
 * 
 * @author ruoyi
 * @date 2025-06-30
 */
public class Department
{
    /** 部门ID，自增主键 */
    private Long id;

    /** 部门名称 */
    private String departmentName;

    /** 部门级别:1一级部门,2二级部门 */
    private Long level;

    /** 上级部门id */
    private Long parentId;

    /** 部门描述 */
    private String description;

    /** 状态:0停用,1启用 */
    private Long status;

    /** 部门图标 */
    private String icon;

    /** 创建时间 */
    private LocalDate createTime;

    /** 更新时间 */
    private LocalDate updateTime;

    public Department() {
    }

    public Department(Long id, String departmentName, Long level, Long parentId, String description, Long status, String icon, LocalDate createTime, LocalDate updateTime) {
        this.id = id;
        this.departmentName = departmentName;
        this.level = level;
        this.parentId = parentId;
        this.description = description;
        this.status = status;
        this.icon = icon;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    /**
     * 获取
     * @return id
     */
    public Long getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取
     * @return departmentName
     */
    public String getDepartmentName() {
        return departmentName;
    }

    /**
     * 设置
     * @param departmentName
     */
    public void setDepartmentName(String departmentName) {
        this.departmentName = departmentName;
    }

    /**
     * 获取
     * @return level
     */
    public Long getLevel() {
        return level;
    }

    /**
     * 设置
     * @param level
     */
    public void setLevel(Long level) {
        this.level = level;
    }

    /**
     * 获取
     * @return parentId
     */
    public Long getParentId() {
        return parentId;
    }

    /**
     * 设置
     * @param parentId
     */
    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    /**
     * 获取
     * @return description
     */
    public String getDescription() {
        return description;
    }

    /**
     * 设置
     * @param description
     */
    public void setDescription(String description) {
        this.description = description;
    }

    /**
     * 获取
     * @return status
     */
    public Long getStatus() {
        return status;
    }

    /**
     * 设置
     * @param status
     */
    public void setStatus(Long status) {
        this.status = status;
    }

    /**
     * 获取
     * @return icon
     */
    public String getIcon() {
        return icon;
    }

    /**
     * 设置
     * @param icon
     */
    public void setIcon(String icon) {
        this.icon = icon;
    }

    /**
     * 获取
     * @return createTime
     */
    public LocalDate getCreateTime() {
        return createTime;
    }

    /**
     * 设置
     * @param createTime
     */
    public void setCreateTime(LocalDate createTime) {
        this.createTime = createTime;
    }

    /**
     * 获取
     * @return updateTime
     */
    public LocalDate getUpdateTime() {
        return updateTime;
    }

    /**
     * 设置
     * @param updateTime
     */
    public void setUpdateTime(LocalDate updateTime) {
        this.updateTime = updateTime;
    }

    public String toString() {
        return "Department{id = " + id + ", departmentName = " + departmentName + ", level = " + level + ", parentId = " + parentId + ", description = " + description + ", status = " + status + ", icon = " + icon + ", createTime = " + createTime + ", updateTime = " + updateTime + "}";
    }
}
